﻿@using 项目备忘录.Models;
@{
    List<Project> data = (List<Project>)TempData["data"];
}
<a href="~/add" class="btn btn-primary">添加</a>
<table class="table">
    <tr>
        <th>序号</th>
        <th>项目名称</th>
        <th>所在国家</th>
        <th>所在省市</th>
        <th>项目简介</th>
        <th>项目业主</th>
        <th>市场开发经理</th>
        <th>市场开发经理电话</th>
        <th>所属部门</th>
        <th>初录日期</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    @for (int i = 0; i < data.Count; i++)
    {
        <tr>
            <td>@i</td>
            <td>@data[i].projectName</td>
            <td>@data[i].country</td>
            <td>@data[i].province</td>
            <td>@data[i].desc</td>
            <td>@data[i].person</td>
            <td>@data[i].manager</td>
            <td>@data[i].managerTelNum</td>
            <td>@data[i].department</td>
            <td>@data[i].date</td>
            <td>@data[i].status</td>
            <td>
                <a class="btn btn-info" href="~/edit?id=@data[i].id">编辑</a>
                <a class="btn btn-danger" href="~/delete">删除</a>
            </td>
        </tr>
    }

</table>